package com.yeyixiao.blog.dao;

import java.util.List;

//import com.yeyixiao.blog.domain.Classify;
import org.apache.ibatis.annotations.Mapper;
import com.yeyixiao.blog.common.page.Pagination;
import com.yeyixiao.blog.domain.Article;


@Mapper
public interface ArticleDao {
    public List<Article> queryPage(Article queryEntity , Pagination<Article> page);
    public Article getById(Long id);

    public List<Article> queryAll(Article queryEntity);

    public Integer getTotalItemsCount(Article queryEntity);


    public void create(Article entity);

    public void update(Article entity);

    public void delete(Article entity);

    public List<Integer> getNewArticle();
    //根据分类查询，分类中课程的数量


}

